package com.talos.ums.controller.admin.warehouseuser.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

@Schema(description = "管理后台 - 用户仓库关系表 Response VO")
@Data
@ExcelIgnoreUnannotated
public class UmsWarehouseUserRespVO {

    @Schema(description = "用户-仓库-中间表主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "10670")
    @ExcelProperty("用户-仓库-中间表主键")
    private Long id;

    @Schema(description = "用户id", requiredMode = Schema.RequiredMode.REQUIRED, example = "7883")
    @ExcelProperty("用户id")
    private Long userId;

    @Schema(description = "仓库id bdms_base_warehourse.id", requiredMode = Schema.RequiredMode.REQUIRED, example = "12446")
    @ExcelProperty("仓库id bdms_base_warehourse.id")
    private Long warehouseId;

    @Schema(description = "仓库编码")
    @ExcelProperty("仓库编码")
    private String warehouseCode;

    @Schema(description = "用户编码")
    @ExcelProperty("用户编码")
    private String userCode;

    @Schema(description = "仓库权限管理员: 0-否, 1-是")
    @ExcelProperty("仓库权限管理员: 0-否, 1-是")
    private Integer adminPermission;

    @Schema(description = "是否有效：0-无效，1-有效")
    @ExcelProperty("是否有效：0-无效，1-有效")
    private Integer activeFlag;

    @Schema(description = "创建时间")
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

    @Schema(description = "创建人主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "13455")
    @ExcelProperty("创建人主键")
    private Long creatorId;

    @Schema(description = "创建人工号")
    @ExcelProperty("创建人工号")
    private String creatorCode;

    @Schema(description = "创建人姓名", example = "张三")
    @ExcelProperty("创建人姓名")
    private String creatorName;

    @Schema(description = "更新人主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "16270")
    @ExcelProperty("更新人主键")
    private Long modifierId;

    @Schema(description = "修改时间")
    @ExcelProperty("修改时间")
    private LocalDateTime modifyTime;

    @Schema(description = "修改人工号")
    @ExcelProperty("修改人工号")
    private String modifierCode;

    @Schema(description = "修改人姓名", example = "张三")
    @ExcelProperty("修改人姓名")
    private String modifierName;

    @Schema(description = "租户id", requiredMode = Schema.RequiredMode.REQUIRED, example = "25541")
    @ExcelProperty("租户id")
    private Long tenantId;

}
